import request from '../../utils/request';

//这里面都是和宠物相关的api接口
export const getPageList = query => {
    return request({
        url: 'http://localhost:8080/api/getAllAdmin',
        method: 'get',
        params: query
    });
};

//根据id获取宠物信息
export const getDogById = query => {
    return request({
        url: 'http://localhost:8080/dog/dog/getDogById',
        method: 'post',
        params: query
    });
};

//修改主体
export const saveupdate = query => {
    return request({
        url: 'http://localhost:8080/api/updateAdminById',
        method: 'post',
        params: query
    });
};


//删除方法
export const del = query => {
    return request({
        url: 'http://localhost:8080/api/deleteAdminById',
        method: 'post',
        params: query
    });
};

//新增方法
export const insert = query => {
    return request({
        url: 'http://localhost:8080/api/addAdmin',
        method: 'post',
        params: query
    });

};
